﻿var settings2 = new FormlySettings();

settings2.container = '#divFormly2';
//settings2.onloadCallback = Do2;
//settings2.shortcutCallback = DoSubmit;
settings2.callbackSuccess = Do2;
settings2.callbackReset = Reset1;
settings2.setLoad(settings2.createGetConfig('/api/Customers/LoadFields?id=\'ALFKI\''));
settings2.setSend(settings2.createPostConfig('/api/Customers/Add'));
settings2.controllerName = 'MainCtrl2';


function Do2() {
    alert(2);
}

function Reset1() {
    $('#img1').attr('src', 'http://placehold.it/350x150/7ba9d0/fff?text=Select+an+image+%3A%29');
}